import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";
import autoImport from "unplugin-auto-import/vite";

export default function createVitePlugin() {
    const plugins = [];
    plugins.push(vue());
    plugins.push(vueJsx());
    plugins.push(
        autoImport({
            imports: [
                // presets
                "vue",
                "vue-router",
            ],
            dts: false,
        })
    );
    return plugins;
}
